Mollie\WooCommerce\Payment\PaymentService B

Total Complexity 99
Dependencies 17
Dependents 6
Total lines 882
Lines of code 535
Logical lines of code 245
Comment lines 164
Methods 28
Properties 10

Methods 28

Method Rating Maintainability Complexity Lines of code
processAsMollieOrder()
B
35 15 92
processAsMolliePayment()
A
45 11 42
correctSurchargeFee()
A
46 8 39
processPayment()
A
43 7 52
updateOrderStatus()
A
54 8 21
paymentTypeBasedOnProducts()
S
51 5 31
processSubscriptionSwitch()
S
57 4 16
updatePaymentStatusForDelayedMethods()
S
61 4 12
processPaymentForMollie()
S
54 3 25
processValidMandate()
S
56 3 18
saveSubscriptionMandateData()
S
57 3 16
needsSubscriptionSwitch()
S
69 4 6
paymentTypeBasedOnGateway()
S
63 4 10
reportPaymentCreationFailure()
S
60 3 13
reportPaymentSuccess()
S
56 2 19
handleMollieOutage()
S
61 2 14
handleMollieFraudRejection()
S
61 2 14
subsSwitchCompleted()
S
59 1 16
noValidMandateForSubsSwitchFailure()
S
61 1 15
processInitialOrderStatus()
S
64 1 11
__construct()
S
63 1 11
setGateway()
S
81 1 3
saveMollieInfo()
S
70 1 6
getUserMollieCustomerId()
S
73 1 5
getProcessPaymentRedirect()
S
67 1 9
orderAddFee()
S
66 1 9
paymentObjectFailure()
S
75 1 4
removeOrderFee()
S
72 1 6